Intelligence lock